{include file="common/header" /}
<div class="fly-home" style="background-image: url();">
    <img src="{$user.headimgurl}" alt="{$user.username}">
    <h1>
        {$user.username}
        {switch name="user.gender"}
        {case value="1"} <i class="iconfont icon-nan"></i>{/case}
        {case value="2"} <i class="iconfont icon-nv">{/case}
        {default /}
        {/switch}
        {eq name="user['lock']" value="1"} <span style="color:#FF7200;">（{$user.level|getLevel}）</span> {/eq}
        <!--<span style="color:#5FB878;">（活雷锋）</span>-->
        {eq name="user['lock']" value="0"}<span>（该号已被封）</span>{/eq}
        <!-- <i class="iconfont icon-nv"></i> -->
        <!-- <span style="color:#c00;">（超级码农）</span>
        <span style="color:#5FB878;">（活雷锋）</span>
        <span>（该号已被封）</span> -->
    </h1>
    <p class="fly-home-info">
        <i class="iconfont icon-zuichun" title="金币"></i><span style="color: #FF7200;">{$user.experience} 金币</span>
        <i class="iconfont icon-shijian"></i><span>{$user.regdate|datetoYmd} 加入</span>
        <i class="iconfont icon-chengshi"></i><span>来自{$user.city|default="地狱"}</span>
    </p>
    <p class="fly-home-sign">{$user.sign}</p>
</div>

<div class="main fly-home-main">
    <div class="layui-inline fly-home-jie">
        <div class="fly-panel">
            <h3 class="fly-panel-title">{$user.username} 最近的提问</h3>
            {notempty name="list"}
            <ul class="jie-row">
                {volist name="list" id="vo"}
                <li>{eq name="vo.elite" value="1"}<span class="fly-jing">精</span>{/eq} <a
                        href="{:url('index/forum/detail',['tid'=>$vo.id])}" class="jie-title" target="_blank">{$vo.title}</a>
                    <i>{$vo.add_time|wordTime}</i> <em>{$vo.view}阅/{$vo.reply}答</em></li>
                {/volist}
            </ul>
            {else/}
            <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i>
            </div>
            {/notempty}
        </div>
    </div>

    <div class="layui-inline fly-home-da">
        <div class="fly-panel">
            <h3 class="fly-panel-title">{$user.username} 最近的回答</h3>
            {notempty name="list"}
            <ul class="home-jieda">
                {volist name="reply" id="rdata"}
                <li>
                    <p><span>{$rdata.reply_time|wordTime}</span> 在<a href="{:url('index/forum/detail',['tid'=>$rdata.tid])}{$rdata.floorid}" target="_blank">{$rdata.title}</a>中回答：
                    </p>
                    <div class="home-dacontent">
                        {$rdata.content}
                    </div>
                </li>
                {/volist}
                <!--<li>
                    <p>
                        <span>5分钟前</span>
                        在<a href="" target="_blank">在Fly社区用的是什么系统啊?</a>中回答：
                    </p>
                    <div class="home-dacontent">
                        Fly社区采用的是NodeJS。分享出来的只是前端模版
                    </div>
                </li>-->
            </ul>

            {else/}
            <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div>
            {/notempty}
        </div>
    </div>

</div>
{include file="common/footer" /}